#wrap{
    overflow: hidden;
    border: #ff0000 solid 1px;
    width: 500px;
}

div.box{
    float: left;
    width: 100px;
    height: 100px;
    line-height: 100px;
    background: yellow;
    text-align: center;
    margin: 10px;
}